import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
		hasLogin:false,
		userInfo:{},
		imgurl:'https://qijiancarinfo-1304249244.cos.ap-shenzhen-fsi.myqcloud.com/'
	},
	
    mutations: {
		login(state,provider){
			state.hasLogin=true;
			state.userInfo =provider;
			// uni.setStorage({
				
			// })
		},
		logout(state){
			state.hasLogin=false
			state.userInfo ={};
			// uni.removeStorage({
				
			// })
		}
	},
    actions: {}
})
export default store